home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DKBSRC.ARJ / MAC.C < prev    next >
C/C++ Source or Header  |  1991-05-04  |  534b  |  30 lines

  1. #include "frame.h"
  2. #include "dkbproto.h"
  3.  
  4. #include <WindowMgr.h>
  5.  
  6.   WindowPtr pwin;
  7.  
  8. display_finished() {}
  9.  
  10. display_close() {
  11.   DisposeWindow(pwin);
  12. }
  13.  
  14. display_init() {
  15.   Rect brect;
  16.   SetRect(&brect, 10, 500, 522, 800);
  17.   pwin = NewWindow(0, &brect, "\pPlot", TRUE, noGrowDocProc, -1, FALSE, 0);
  18.   SetPort(pwin);
  19. }
  20.  
  21. void display_plot (x, y, Red, Green, Blue)   /* plot a single RGB pixel */
  22.   int x, y;
  23.   char Red, Green, Blue;
  24.   {
  25.   if (Red || Green || Blue) {
  26.     MoveTo(x,y);
  27.     LineTo(x,y);
  28.     }
  29. }
  30.